<template>
  <div class="index">
    <!-- banner图 -->
    <div class="bannerImg">
      <!-- banner图中间区域 -->
      <div class="content-box">
        <h1>香港屋網-買樓,租屋,放盤,<span class="sp">更輕鬆!</span></h1>
        <div class="optionInfo">
          <el-tabs v-model="activeName">
            <el-tab-pane label="用户管理" name="first">
              <!-- 选项1 -->
              <div class="select1">
                <el-row>
                  <el-col :span="12">
                    <div class="grid-content bg-purple">
                      <div class="addr">
                        <i class="el-icon-search"></i>
                        <el-select v-model="value" placeholder="请选择">
                          <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                        </el-select>
                      </div>
                    </div>
                  </el-col>
                  <el-col :span="12">
                    <div class="grid-content bg-purple-light">
                      <div class="addr">
                        <i class="el-icon-film"></i>
                        <el-select v-model="value" placeholder="请选择">
                          <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                        </el-select>
                      </div>
                    </div>
                  </el-col>
                </el-row>
              </div>
              <!-- 选项2 -->

              <div class="select1 select2">
                <div class="addr addr2">
                  <i class="el-icon-edit"></i><span>實用面積</span>
                  <el-select v-model="value" class="selectSize1">
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                    </el-option>
                  </el-select>
                  <span style="color: #ccc;">----------</span>
                  <el-select v-model="value">
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                    </el-option>
                  </el-select>
                </div>
              </div>

              <!-- 选项3 -->
              <div class="select1 select2 select3">
                <div class="addr addr2 addr3">
                  <span>實用面積</span>
                  <el-select v-model="value" class="selectSize1">
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                    </el-option>
                  </el-select>
                  <span style="color: #ccc;">----------</span>
                  <el-select v-model="value">
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                    </el-option>
                  </el-select>
                </div>
                <button class="priceBtn">搜出好價</button>
              </div>
              <!-- 搜索记录 -->
              <div class="Search-record">
                <p style="margin-bottom: 10px;">搜索記錄</p>
                <div class="infoList">
                  <div class="addIcon">
                    <i class="el-icon-location-outline"></i>
                  </div>
                  <div class="addressInfo">
                    <p>九龍 2房</p>
                    <p>實用面積:200呎-500呎</p>
                    <p>300萬-500萬</p>
                  </div>
                </div>
              </div>
              <!-- 最近看過的樓盤 -->
              <div class="Search-record" style="margin-top: 30px;">
                <p style="margin-bottom: 10px;">您最近看過的樓盤</p>
                <div class="infoList listImg">
                  <div class="hotleImg">
                    <img src="../../static/index/img01.jpg" alt="">
                  </div>
                  <div class="hotelInfo">
                    <p>仲懷名貴酒店</p>
                    <el-rate style="font-size: 10px;"></el-rate>
                  </div>
                </div>
                <div class="infoList listImg">
                  <div class="hotleImg">
                    <img src="../../static/index/img01.jpg" alt="">
                  </div>
                  <div class="hotelInfo">
                    <p>仲懷名貴酒店</p>
                    <el-rate style="font-size: 10px;"></el-rate>
                  </div>
                </div>
                <div class="infoList listImg">
                  <div class="hotleImg">
                    <img src="../../static/index/img01.jpg" alt="">
                  </div>
                  <div class="hotelInfo">
                    <p>仲懷名貴酒店</p>
                    <el-rate style="font-size: 10px;"></el-rate>
                  </div>
                </div>

              </div>
            </el-tab-pane>
            <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
    <!-- 信息展示 -->
    <div class="Instructions">
      <div style="width: 1200px;margin: 0 auto;">
        <el-row>
          <el-col :span="8">
            <div class="grid-content bg-purple">
              <el-card shadow="hover">
                <img src="../../static/index/img02.jpg" alt="">
                <h2>18樓全港樓房搜尋網站</h2>
                <p>18樓的樓房搜尋讓用戶透過簡單點擊，即可從超過10萬間樓房中找到合您心水的樓盤。我們的網站有數十萬次瀏覽次數，
                  用戶會定期使用搜尋比較同地區的樓盤。您也可以在18樓上使用一鍵找房，中介人會馬上找到合適樓盤給你。</p>
              </el-card>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-content bg-purple-light">
              <el-card shadow="hover">
                <img src="../../static/index/img03.jpg" alt="">
                <h2>在18樓搜尋平價樓盤</h2>
                <p>使用18樓您可以輕而易舉地比較各個網站的價錢和搜尋合您心水的樓盤。
                  您只需要輸入您所需求的樓盤資料，我們的搜尋引擎會為您列出
                  相應的樓盤。您亦可以通過使用價格、距離、樓齡及裝潢等選項來篩選樓盤，精簡您的搜尋。
                </p>
              </el-card>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-content bg-purple">
              <el-card shadow="hover">
                <img src="../../static/index/img04.jpg" alt="">
                <h2>在18樓搜尋平價樓盤</h2>
                <p>使用18樓您可以輕而易舉地比較各個網站的價錢和搜尋合您心水的樓盤。
                  您只需要輸入您所需求的樓盤資料，我們的搜尋引擎會為您列出
                  相應的樓盤。您亦可以通過使用價格、距離、樓齡及裝潢等選項來篩選樓盤，精簡您的搜尋。
                </p>
              </el-card>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'index',
    data() {
      return {
        activeName: 'first',  //設置默認顯示tabs
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: ''
      }
    }

  }
</script>

<style>

  /* banner 图样式 */
  .index .bannerImg {
    width: 100%;
    height: 900px;
    /* border: 1px solid #333333; */
    background-image: url(../../static/index/banner.jpg);
    background-size: 100% 900px;
    background-repeat: no-repeat;
    /* position: relative; */

  }

  /* banner图中间区域 */
  .index .bannerImg .content-box {
    /* position: absolute; */
    width: 800px;
    height: 850px;
    /* border: 1px solid none; */
    margin: 0 auto;
  }

  .index .bannerImg .content-box h1 {
    padding-top: 80px;
    color: #FFFFFF;
  }

  .index .bannerImg .content-box .sp {
    color: #ff9602;
  }

  .index .bannerImg .content-box .optionInfo {
    width: 770px;
    height: 650px;
    /* border: 1px solid #FF9602; */
    margin: 0 auto;
    margin-top: 50px;
    background-color: #FFFFFF;
  }

  /* tabs样式 */
  .optionInfo .el-tabs__item {
    width: 335px;
    margin-left: 30px;
  }

  .optionInfo .el-tabs__active-bar {
    margin-left: 50px;
  }

  /* 选项1 */
  .index .bannerImg .content-box .optionInfo .select1 {
    width: 100%;
    margin-left: 30px;
    /* border: 1px solid #333333; */
    margin-bottom: 30px;
  }

  .index .bannerImg .content-box .optionInfo .addr .bg-purple .el-select {
    width: 280px !important;
    background-color: #f0f0f0 !important;
    float: right !important;
    /* border: 1px solid #000; */

  }

  .index .bannerImg .content-box .optionInfo .addr .el-select .el-input__inner {
    background-color: #f0f0f0 !important;
    width: 280px !important;
    height: 70px !important;
    border: none !important;
    color: #AD2022 !important;
  }

  .index .bannerImg .content-box .optionInfo .addr {
    line-height: 70px;
    width: 326px;
    height: 72px;
    font-size: 20px;
    /* border: 1px solid #333333; */
    background-color: #f0f0f0;
  }

  /* 选项2 */
  .index .bannerImg .content-box .optionInfo .addr2 {
    width: 700px;
    padding-left: 10px;
  }

  .index .bannerImg .content-box .optionInfo .addr2 span {
    margin-left: 15px;
    color: #333333;
    font-size: 14px;

  }

  .index .bannerImg .content-box .optionInfo .addr2 .el-select .el-input__inner {
    background-color: #f0f0f0 !important;
    width: 200px !important;
    height: 50px !important;
    border: none !important;
    color: #AD2022;
    margin-left: 60px !important;
  }

  .index .bannerImg .content-box .optionInfo .select2 {
    text-align: left;

  }

  /* 选项3 */
  .index .bannerImg .content-box .optionInfo .addr3 {
    width: 450px;
    float: left;
  }

  .index .bannerImg .content-box .optionInfo .addr3 .el-select .el-input__inner {
    width: 120px !important;
    height: 50px !important;
    margin-left: 10px !important;
  }

  .index .bannerImg .content-box .optionInfo .select3 .priceBtn {
    float: right;
    width: 200px;
    height: 70px;
    background-color: #ad2022;
    color: #FFFFFF;
    border: none;

  }

  .index .bannerImg .content-box .optionInfo .select3 {
    float: left;
    width: 92%;
  }

  /* 搜索記錄 */
  .index .bannerImg .content-box .Search-record {
    float: left;
    width: 92%;
    height: 100%;
    /*border: 1px solid #000;*/
    margin-left: 30px;
    text-align: left;
  }

  .index .bannerImg .content-box .Search-record .infoList {
    height: 90px;
    border: 1px solid #ccc;
    width: 230px;
  }

  .index .bannerImg .content-box .Search-record .infoList .addIcon {
    width: 30px;
    /* border: 1px solid #000000; */
    line-height: 80px;
    font-size: 30px;
    color: #ccc;
    float: left;
  }

  .index .bannerImg .content-box .Search-record .infoList .addressInfo {
    float: left;
    margin-left: 15px;
    color: #333333;
    line-height: 30px;

  }

  .index .bannerImg .content-box .Search-record .listImg {
    width: 220px;
    float: left;
    margin-right: 10px;
    line-height: 50px;
    height: 70px;
    /*border: 1px solid #000;*/
  }

  .index .bannerImg .content-box .Search-record .listImg .hotleImg {
    float: left;
  }

  .index .bannerImg .content-box .Search-record .listImg .hotelInfo {
    float: left;
    margin-left: 15px;
    /*border: 1px solid #000000;*/
    /*height:80px;*/

  }

  .index .bannerImg .content-box .Search-record .listImg .hotelInfo p {
    /*line-height: 10px;*/
  }

  /* 信息指示 */
  .index .Instructions {
    width: 100%;
    height: 500px;
     /*border: 1px solid #000;*/
    background-color: #f5f5f5;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    flex-direction: column;
    justify-content: center;
    line-height: 30px;
  }

  .el-col-8 {
    width: 30% !important;
    margin-right: 26px !important;
  }

  .index .Instructions h2 {
    color: #ad2022;
  }

</style>
